package org.dromara.system.domain.bo;

import org.dromara.system.domain.ZfbConfig;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 支付宝业务对象 zfb_config
 *
 * @author Lion Li
 * @date 2025-07-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = ZfbConfig.class, reverseConvertGenerate = false)
public class ZfbConfigBo extends BaseEntity {

    /**
     * 
     */
    private Long id;

    /**
     * 
     */
    private Long userId;

    /**
     * appid
     */
    private String appId;

    /**
     * 应用私钥
     */
    private String privateKey;

    /**
     * 应用公钥
     */
    private String publicKey;

    /**
     * 应用公钥证书
     */
    private String certPath;

    /**
     * 支付宝公钥证书路径
     */
    private String alipayPublicCertPath;

    /**
     * 支付宝根证书路径
     */
    private String rootCertPath;

    /**
     * 商城是否使用该支付宝配置 0否 1是
     */
    @NotNull(message = "商城是否使用该支付宝配置 0否 1是不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer isAllowMallPay;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;


}
